var app = getApp();
Page({
  data: {
    btzf_price:0,
    btzf_num:0,
    orderList:[]
  },
  onLoad: function(options) {
    var store_id = wx.getStorageSync("store_id");
    if(store_id){
      this.getProfitSituationSMBTMXHONGBAO();
    }
  },

  getProfitSituationSMBTMXHONGBAO:function(){
    var t = this;
    app.visit("account/getProfitSituationSMBTMXHONGBAO", {
      store_id:wx.getStorageSync("store_id")
    }, "", function(c) {
      console.log(c)
      if(0 == c.code){
        t.setData({
          yezf_price:c.data.hbzf_price,
          yezf_num:c.data.hbzf_num,
          orderList:c.data.orderList
        })
      }else{
        app.showToast(c.msg)
      }
    })
  },

  onShow:function(){

  },
  zongsy: function (e) {
    wx.navigateTo({
      url: 'zongsy'
    });
  },

})